<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="/layout/template.xhtml">

<ui:define name="body">

    <a:form id="departmanAraForm" ajaxSubmit="true">
           
     <a:outputPanel id="messagePanel">
           <rich:messages styleClass="message"/>
    </a:outputPanel>
     <a:region>
     <a:outputPanel id="departmanAraPanel">
        <rich:panel>
           
           <f:facet name="header">#{messages['departman.title.arama']}</f:facet>
         
        <h:panelGrid columns="1" id="inputAttribuId">
            
         
            <s:decorate  template="layout/edit.xhtml">
                <ui:define name="label">#{messages['departman.ad']}</ui:define>
                <h:inputText id="departmanAdi" 
                             value="#{departmanDao.departman.departmanAdi}"/>              
            </s:decorate>
            
            
            <s:decorate template="layout/edit.xhtml">
                <ui:define name="label">#{messages['departman.sorumlusu']}</ui:define>
                <h:inputText id="departmanSorumlusu" 
                             value="#{departmanDao.departman.departmanSorumlusu}" />                     
            </s:decorate>
            
            
            <s:decorate template="layout/edit.xhtml">
                <ui:define name="label">#{messages['departman.dahiliTel']}</ui:define>              
                <h:inputText id="dahili" 
                             value="#{departmanDao.departman.dahiliTel}"  maxlength="11">
                   <rich:beanValidator/>
                 </h:inputText>                                                   
               
            </s:decorate>
           
         </h:panelGrid>   
            

            <div style="clear:both"/>

        </rich:panel>
      </a:outputPanel>


      
        
       
           <a:commandButton value="Ara"  action="#{departmanDao.departmanAra()}"   reRender="departmanReturnValue"/>
        </a:region>
             
           <a:commandButton value="Temizle" action="#{departmanDao.temizle()}"  ajaxSingle="true" reRender="departmanReturnValue,departmanAraPanel" />            
           <a:commandButton value="Kaydet" action="/departmanEkle.xhtml" actionListener="#{departmanDao.temizle()}" ajaxSingle="true" />
               
      
      
      
        <ui:include src="/departmanList.xhtml"/>
       
       


    </a:form>
    
           <a:status onstart="#{rich:component('wait')}.show()"
			onstop="#{rich:component('wait')}.hide()" />
		<rich:modalPanel id="wait" autosized="true" width="200" height="120"
			moveable="false" resizeable="false">
			<f:facet name="header">
				<h:outputText value="#{messages['listesi.islemYapiliyor']}"/>
			</f:facet>
			<h:outputText value="#{messages['listesi.lutfenBekleyiniz']}"/>
		</rich:modalPanel>
    	
</ui:define>
       
</ui:composition>
